// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_messagerecipients
// * CreateDate    : 2014-06-05 18:29:59
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:59
// * LastChanger   : 2014-06-05 18:29:59
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmMessagerecipientsEntity : EntityBase
    {
        public HmMessagerecipientsTable TableSchema
        {
            get
            {
                return HmMessagerecipientsTable.Current;
            }
		}
		
		public HmMessagerecipientsEntity()
        {

        }
		
		public HmMessagerecipientsEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Recipientid = Convert.ToInt64(CommonFunctions.ToObject(dr["recipientid"]));
			this.Recipientmessageid = Convert.ToInt64(CommonFunctions.ToObject(dr["recipientmessageid"]));
			this.Recipientaddress = Convert.ToString(CommonFunctions.ToObject(dr["recipientaddress"]));
			this.Recipientlocalaccountid = Convert.ToInt32(CommonFunctions.ToObject(dr["recipientlocalaccountid"]));
			this.Recipientoriginaladdress = Convert.ToString(CommonFunctions.ToObject(dr["recipientoriginaladdress"]));
        }
		
		public HmMessagerecipientsEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Recipientid = Convert.ToInt64(CommonFunctions.ToObject(dr["recipientid"]));
			this.Recipientmessageid = Convert.ToInt64(CommonFunctions.ToObject(dr["recipientmessageid"]));
			this.Recipientaddress = Convert.ToString(CommonFunctions.ToObject(dr["recipientaddress"]));
			this.Recipientlocalaccountid = Convert.ToInt32(CommonFunctions.ToObject(dr["recipientlocalaccountid"]));
			this.Recipientoriginaladdress = Convert.ToString(CommonFunctions.ToObject(dr["recipientoriginaladdress"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmMessagerecipientsTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public long Recipientid
        {
            get { return Convert.ToInt64(GetData(HmMessagerecipientsTable.C_recipientid)); }
            set { SetData(HmMessagerecipientsTable.C_recipientid, value); }
        }
		
        [DataMember]
        public long Recipientmessageid
        {
            get { return Convert.ToInt64(GetData(HmMessagerecipientsTable.C_recipientmessageid)); }
            set { SetData(HmMessagerecipientsTable.C_recipientmessageid, value); }
        }
		
        [DataMember]
        public string Recipientaddress
        {
            get { return Convert.ToString(GetData(HmMessagerecipientsTable.C_recipientaddress)); }
            set { SetData(HmMessagerecipientsTable.C_recipientaddress, value); }
        }
		
        [DataMember]
        public int Recipientlocalaccountid
        {
            get { return Convert.ToInt32(GetData(HmMessagerecipientsTable.C_recipientlocalaccountid)); }
            set { SetData(HmMessagerecipientsTable.C_recipientlocalaccountid, value); }
        }
		
        [DataMember]
        public string Recipientoriginaladdress
        {
            get { return Convert.ToString(GetData(HmMessagerecipientsTable.C_recipientoriginaladdress)); }
            set { SetData(HmMessagerecipientsTable.C_recipientoriginaladdress, value); }
        }
		
		#endregion
	}
	
	
}	

